﻿using System;

using E.BLL;
using E.Model;
using E.Web.UI.Page;

using X.Common;

namespace E.Web.training.interactive
{
    public partial class View : BasePage
    {
        public QandAModel model = new QandAModel();

        protected override void ShowPage()
        {
            int id = XRequest.GetInt("id", -1);
            if (id != -1)
            {
                TeacherBLL bll = new TeacherBLL();
                model = bll.GetQnAInfo(id);
                bll.UpdateNewReplyQnAFlag(id);
            }
            else
            {
                ExecuteJS("alert('服务器忙，请稍后再试'); history.back();");
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
